package pers.lws.erp.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.lws.erp.common.emum.MsgStatusEmum;
import pers.lws.erp.common.result.ResultBody;

/**
 * @author liuws
 * @create 2020-09-11 23:53
 */
@RestController
@RequestMapping("/sys")
public class SystemController {

    @RequestMapping("/test")
    public ResultBody test() {
        return null;
    }

    /**
     * 未授权
     * @return
     */
    @RequestMapping("/unauth")
    public ResultBody toUnauth() {
        return ResultBody.customStatus(MsgStatusEmum.SYS_UNAUTH.getCode(), MsgStatusEmum.SYS_UNAUTH.getMsg(), null);
    }
}
